<%= form_for(@technical_failure) do |f| %>
  <% if @technical_failure.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@technical_failure.errors.count, "error") %> prohibited this technical_failure from being saved:</h2>

      <ul>
      <% @technical_failure.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :criticidad %><br />
    <%= f.text_field :criticidad %>
  </div>
  <div class="field">
    <%= f.label :parteAfectada %><br />
    <%= f.text_field :parteAfectada %>
  </div>
  <div class="field">
    <%= f.label :fechaFalla %><br />
    <%= f.date_select :fechaFalla %>
  </div>
  <div class="field">
    <%= f.label :bus_id %><br />
    <%= f.text_field :bus_id %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
